<div class="row" ng-controller="personalLandlordCtrl">
  <div class="col-md-8 col-md-offset-2">
    <div class="wrapper-md">
      <tabset class="tab-container" ng-init="steps={step1:true, step2:false, step3:false}" ng-show="isShow" ng-model="isShow">
        <tab heading="上传业主信息" step-number="1" total-step="3" active="steps.step1" disabled="isDisabled1">
          <div class="panel-body">
            <form name="step1" class="bs-example form-horizontal form-validation">
              <div class="form-group">
                <label class="col-lg-4 control-label">房东姓名<span class="text-danger font-bold">*</span></label>
                <div class="col-lg-4">
                  <input type="text" name="landlordName" class="form-control" ng-model="data.landlordName" placeholder="请输入房东姓名" ng-pattern="" required >
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-4 control-label">房东身份证号<span class="text-danger font-bold">*</span></label>
                <div class="col-lg-4">
                  <input type="text" name="idCardNo" class="form-control" ng-model="data.idCardNo" placeholder="请输入身份证号码" ng-pattern="" required >
                </div>
              </div>

              <div class="form-group">
                <label class="col-lg-4 control-label">房东收款银行<span class="text-danger font-bold">*</span></label>
                <div class="col-lg-4">
                  <input type="text" name="bankName" class="form-control" ng-model="data.bankName" placeholder="请输入房东收款银行" ng-pattern="" required >
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-4 control-label">房东收款银行卡号<span class="text-danger font-bold">*</span></label>
                <div class="col-lg-4">
                  <input type="text" name="bankAccount" class="form-control" ng-model="data.bankAccount" placeholder="请输入房东收款银行卡号" ng-pattern="" required >
                </div>
              </div>

              <div class="form-group">
                <label class="col-lg-4 control-label">房东手机号<span class="text-danger font-bold">*</span></label>
                <div class="col-lg-4">
                  <input type="text" name="phone" class="form-control" ng-model="data.phone" placeholder="" ng-pattern="/((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)/" required>
                </div>
              </div>
              <!-- <div class="form-group">
                <label class="col-lg-4 control-label">房东身份证正反面<span class="text-danger font-bold">*</span></label>
                <div class="col-lg-8">
                  <tiny-image source="landlordPic" on-change="landlordPicChange" class="col-lg-10"></tiny-image>
                  <inout type="hidden" ng-model="data.idCard" required>
                    <inout type="hidden" ng-model="data.idCardBack" required>
                      <button type="button" class="btn btn-success col-lg-2" ng-click="showlandlordPicTips()">帮助</button>
                </div>
              </div> -->
              <div class="form-group">
                <label class="col-lg-4 control-label">房东业务负责人手机号<span ng-if="!!data.clientCard && !!data.clientCardBack" class="text-danger font-bold">*</span></label>
                <div class="col-lg-4">
                  <input type="text" name="clientPhone" class="form-control" ng-model="data.clientPhone" placeholder="" ng-pattern="/((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)/" ng-required="!!data.clientCard && !!data.clientCardBack">
                </div>
              </div>
              <uploadimgregister></uploadimgregister>
              <!-- <div class="form-group">
                <label class="col-lg-4 control-label">房东业务负责人身份证正反面</label>
                <div class="col-lg-8">
                  <tiny-image source="landlordClientPic" on-change="landlordClientPicChange" class="col-lg-10"></tiny-image>
                  <inout type="hidden" ng-model="data.clientCard">
                    <inout type="hidden" ng-model="data.clientCardBack">
                      <button type="button" class="btn btn-success col-lg-2" ng-click="showlandlordClientPicTips()">帮助</button>
                </div>
              </div> -->
              <!-- <div class="form-group">
                <label class="col-lg-4 control-label">委托业务负责人授权书<span ng-if="!!data.clientCard && !!data.clientCardBack" class="text-danger font-bold">*</span></label>
                <div class="col-lg-8">
                  <tiny-image source="clientPic" on-change="clientPicChange" class="col-lg-10"></tiny-image>
                  <inout type="hidden" ng-model="data.entrust" ng-required="!!data.clientCard && !!data.clientCardBack">
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-4 control-label">房东相关收租流水<span class="text-danger font-bold">*</span></label>
                <div class="col-lg-8">
                  <tiny-image source="rentalPropertyCertificate" on-change="rentalPropertyCertificateChange" class="col-lg-10"></tiny-image>
                  <inout type="hidden" ng-model="data.rental" required>
                    <button type="button" class="btn btn-success col-lg-2" ng-click="showrentalPropertyCertificateTips()">帮助</button>
                </div>
              </div> -->
              <div class="form-group">
                <label class="col-lg-4 control-label"></label>
                <div class="col-lg-8">
                  <input type="checkbox" ng-model="agreement" checked required> 已阅读<span class="text-danger font-bold">*</span> <a ng-click="showTxt()" href="javaScript:;">《个人信用报告查询授权书》</a>
                </div>
              </div>
              <hr/>
              <div class="form-group">
                <div class="col-lg-offset-4 col-lg-4">
                  <button type="submit" class="btn btn-default btn-md col-lg-5" ng-click="goBack()">返回</button>
                  <button type="submit" ng-disabled="step1.$invalid" class="btn btn-default btn-md col-lg-5 col-lg-offset-1" ng-click="personalInfo()">下一步</button>
                </div>
              </div>
            </form>
          </div>
        </tab>
        <tab heading="审核" step-number="2" total-step="3" disabled="step1.$invalid" active="steps.step2">
          <div class="panel-body">
            <form name="step2" class="bs-example form-horizontal form-validation" style="padding: 200px 0px;">
              <div class="form-group text-center" ng-show="verifying">
                <img src="img/nav/loading.png">
                <h3 style="text-align: center;">审核中</h3>
                <p>系统将在48小时内出审核结果，请耐心等待</p>
              </div>
              <div class="form-group text-center" ng-show="verifyFail">
                <img src="img/nav/fail.png">
                <h3 style="text-align: center;">审核失败</h3>
                <p>失败原因:{{verifyFailMessage}}</p>
                <button class="btn btn-success center" ng-click="update()">修改</button>
              </div>
            </form>
          </div>
        </tab>
        <tab heading="成功" step-number="3" total-step="3" disabled="step1.$invalid" active="steps.step3">
          <form name="step3" class="bs-example form-horizontal form-validation" style="padding: 200px 0px;">
            <div class="form-group text-center">
              <img src="img/nav/success.png">
              <h3 style="text-align: center;">审核通过</h3>
              <p>您提交的资料已审核通过，您现在可以添加房源了 </p>
              <button class="btn btn-primary center" ng-click="goHouseEdit()">去录入房源</button>
            </div>
          </form>
        </tab>
      </tabset>
    </div>
  </div>
</div>
